package com.lcx.plugin.neteaseCloud.util;

import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.project.Project;
import com.lcx.plugin.neteaseCloud.constant.StringConstant;

/**
 * @author daxiong
 * @date 2021/9/8 下午4:57
 */
public class ConfigUtil {

    public static void setRunning(Project project, boolean value) {
        PropertiesComponent.getInstance(project).setValue(StringConstant.RUNNING_KEY, value);
    }

    public static boolean getRunning(Project project){
        return PropertiesComponent.getInstance(project).getBoolean(StringConstant.RUNNING_KEY);
    }
}